<template>
  <view class="promotion-layout">
    <my-header title="推广员协议及规则"></my-header>
    <my-content class="content" :default-padding-top="10">
      <rich-text :nodes="freightRuleData" class="privacy"></rich-text>
    </my-content>
  </view>
</template>

<script>
	import api from '../../api'
	export default {
		data() {
			return {
				freightRuleData:''
			}
		},
		onLoad() {
			this.getContent()
		},
		onShow(){
			
		},
		
		methods: {
			getContent(){
				uni.showLoading({
					title:'数据加载中'
				})
				api.contents.show('promotion_rule').then(res => {
					if (res.code === 200) {
						uni.hideLoading()
						this.freightRuleData = res.data.content
					}
				}).catch(error => {
					console.log(error)
				})
			}
		},
	}
</script>

<style lang="scss">
	.content {
		width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 20rpx;
    background-color: #141414;
    color: white;
	}
</style>